<div id ="adminArea">
<?php
echo $this->message;?>
</div>
<?php 
$this->dojo()->enable();


$this->tabContainer()->captureStart('main-container',
                                    array('design' => 'headline'),
                                    array(
                                            'style'=>'height:400px;width:600px;'
                                     ));

$addschool = $this->url(array('module'=>'admin', 'controller'=>'school', 'action'=>'addschool'));    
$viewschool = $this->url(array('module'=>'admin', 'controller'=>'school', 'action'=>'viewschools'));                                     

echo $this->contentPane(
 'school',
 'Choose from any of the following options: <p></p>' 
."<li><a href=$addschool>Add a School </a></li>"
."<li><a href=$viewschool>View All/Edit/Delete a school</a></li>"
,
 array('region' => 'top','title'=>'School Menu'),
 array('style' => 'background-color: white;')
);


$addDept = $this->url(array('module'=>'admin', 'controller'=>'dept', 'action'=>'add-dept'));   
$SchoolDept = $this->url(array('module' =>'admin', 'controller'=> 'school', 'action'=>'add-dept-school'));
$ViewDept = $this->url(array('module' =>'admin', 'controller'=> 'dept', 'action'=>'viewdepts'));

echo  $this->contentPane(
 'department',

 'Choose from any of the following options on modifying a department in the database: <p></p>' 
."<li><a href=$addDept>Add a Department </a></li>"
."<li><a href=$SchoolDept>Associate a department with a particular school </a></li>"
."<li><a href=$ViewDept>View All/Edit/Delete a Department </a></li>"
, 
array('region' => 'left', 'title'=>'Department Menu'),
 array('style' => 'width: 200px; background-color: white;')
);

$course= $this->url(array('module'=>'admin', 'controller'=>'courses', 'action'=>'viewschools'));
$addcourse = $this->url(array('module'=>'admin', 'controller'=>'courses', 'action'=>'index'));
echo $this->contentPane(
 'course',
 'Choose from any of the following options on modifying a courses in the database: <p></p>' 
."<li><a href=$addcourse>Add a Course </a></li>"
."<li><a href=$course>Edit/Delete a Course </a></li>",
 array('region' => 'center','title'=>'Course Menu'),
 array('style' => 'background-color: white;')
);

$list = $this->url(array('module'=>'admin', 'controller'=>'usermanagement', 'action'=>'listusers'));

echo $this->contentPane(
 'users',
 'Users menu Options: <p></p>' 
."<li><a href=$list>View/Edit all Registered Users in the System</a></li>"
,
 array('region' => 'bottom', 'title'=>'Users Menu'),
 array('style' => 'background-color: white;')
);

$rats = $this->url(array('module'=>'admin', 'controller'=>'usermanagement', 'action'=>'avgratings'));
$comms = $this->url(array('module'=>'admin', 'controller'=>'usermanagement', 'action'=>'viewcomments'));

echo $this->contentPane(
 'ratings',
 'See how users are rating Gradeometer: <p></p>' 
."<li><a href=$rats>View Gradeometer ratings</a></li>"
."<li><a href=$comms>View Comments from Respondents</a></li>"

,
 array('region' => 'bottom', 'title'=>'Gradeometer Ratings'),
 array('style' => 'background-color: white;')
);

echo $this->tabContainer()->captureEnd('main-container');
  ?>
